package forum.client.ui.events;

import forum.client.ui.SearchHandler;

public class SearchErrorEvent implements SearchEvent {

	/**
	 * The error message to show the user in the GUI.
	 */
	private String m_errorMessage;
	
	public SearchErrorEvent(String errorMessage) {
		m_errorMessage = errorMessage;
	}
	
	@Override
	public void respondToEvent(SearchHandler handler) {
		handler.notifyError(m_errorMessage);
	}
	
}
